package Entity;


import java.sql.Date;

/**
 * 图书借阅信息
 * @Author Chen
 * @Date 2022/1/6 11:29
 * @Version 1.0
 */
public class Borrow {
    private int bookNumber;
    private int readersNumber;
    private Date hoursOfLoanService;
    private Date returnTime;
    private double fine;

    public Borrow() {
        super();
    }

    public Borrow(int bookNumber, int readersNumber, Date hoursOfLoanService, Date returnTime, double fine) {
        super();
        this.bookNumber = bookNumber;
        this.readersNumber = readersNumber;
        this.hoursOfLoanService = hoursOfLoanService;
        this.returnTime = returnTime;
        this.fine = fine;
    }

    public int getBookNumber() {
        return bookNumber;
    }

    public void setBookNumber(int bookNumber) {
        this.bookNumber = bookNumber;
    }

    public int getReadersNumber() {
        return readersNumber;
    }

    public void setReadersNumber(int readersNumber) {
        this.readersNumber = readersNumber;
    }

    public Date getHoursOfLoanService() {
        return hoursOfLoanService;
    }

    public void setHoursOfLoanService(Date hoursOfLoanService) {
        this.hoursOfLoanService = hoursOfLoanService;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
    }

    public double getFine() {
        return fine;
    }

    public void setFine(double fine) {
        this.fine = fine;
    }

    @Override
    public String toString() {
        return bookNumber +"             "+ readersNumber +"       "+ hoursOfLoanService +"          "+ returnTime +"     "+ fine ;
    }
}
